import sys

print(sys.argv)
print(sys.argv[1:])
print(sys.path)

print("-------------------------time")
import time

start = time.time() #时间戳1970.1.1

time.sleep(2)

end = time.time()

print(f"duration:{end-start}")


print("-------------------------datetime")
from datetime import datetime
now = datetime.now()
print(now,type(now))
print(now.year,now.month,now.day)

print(datetime.strftime(now,"%Y-%m-%d %H:%M:%S"))

date_str = "2024_10_30 10|09|48"

parse_rst = datetime.strptime(date_str,"%Y_%m_%d %H|%M|%S")

print(parse_rst)

print("--------------------------list")

arr = [2,3,5,123,45,5]
print(max(arr))
print(min(arr))
print(len(arr))
print(sum(arr))

#arr.sort()  #会修改原始数据
new_arr = sorted(arr,reserve = True) #不会修改原始数据

